package com.phf.vhr.mapper;

import com.phf.vhr.model.entity.UsersDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author phf
 * @since 2021-09-26
 */
public interface UsersMapper extends BaseMapper<UsersDO> {

    /**
     * 根据用户名获取用户
     * 
     * @param userName
     * @return
     */
    @Select("select * from users where name = #{userName}")
    UsersDO getOneUser(String userName);

}
